﻿using SmugMugApiWrapper;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Runtime.Serialization;
using System.Xml;

namespace SmugMugAPIWrapperTest
{
    
    
    /// <summary>
    ///This is a test class for SmugMugApiExceptionTest and is intended
    ///to contain all SmugMugApiExceptionTest Unit Tests
    ///</summary>
    [TestClass()]
    public class SmugMugApiExceptionTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Message
        ///</summary>
        [TestMethod()]
        public void MessageTest()
        {
            SmugMugApiException target = new SmugMugApiException(); // TODO: Initialize to an appropriate value
            string actual;
            actual = target.Message;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ErrorCode
        ///</summary>
        [TestMethod()]
        public void ErrorCodeTest()
        {
            SmugMugApiException target = new SmugMugApiException(); // TODO: Initialize to an appropriate value
            int actual;
            actual = target.ErrorCode;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ToString
        ///</summary>
        [TestMethod()]
        public void ToStringTest()
        {
            SmugMugApiException target = new SmugMugApiException(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.ToString();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for parseXML
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void parseXMLTest()
        {
            SmugMugApiException_Accessor target = new SmugMugApiException_Accessor(); // TODO: Initialize to an appropriate value
            target.parseXML();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetObjectData
        ///</summary>
        [TestMethod()]
        public void GetObjectDataTest()
        {
            SmugMugApiException target = new SmugMugApiException(); // TODO: Initialize to an appropriate value
            SerializationInfo info = null; // TODO: Initialize to an appropriate value
            StreamingContext context = new StreamingContext(); // TODO: Initialize to an appropriate value
            target.GetObjectData(info, context);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SmugMugApiException Constructor
        ///</summary>
        [TestMethod()]
        public void SmugMugApiExceptionConstructorTest5()
        {
            XmlDocument errorDocument = null; // TODO: Initialize to an appropriate value
            SmugMugApiException target = new SmugMugApiException(errorDocument);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SmugMugApiException Constructor
        ///</summary>
        [TestMethod()]
        public void SmugMugApiExceptionConstructorTest4()
        {
            string errorMessage = string.Empty; // TODO: Initialize to an appropriate value
            string errorStatus = string.Empty; // TODO: Initialize to an appropriate value
            int errorCode = 0; // TODO: Initialize to an appropriate value
            SmugMugApiException target = new SmugMugApiException(errorMessage, errorStatus, errorCode);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SmugMugApiException Constructor
        ///</summary>
        [TestMethod()]
        public void SmugMugApiExceptionConstructorTest3()
        {
            SmugMugApiException target = new SmugMugApiException();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SmugMugApiException Constructor
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SmugMugApiWrapper.dll")]
        public void SmugMugApiExceptionConstructorTest2()
        {
            SerializationInfo info = null; // TODO: Initialize to an appropriate value
            StreamingContext context = new StreamingContext(); // TODO: Initialize to an appropriate value
            SmugMugApiException_Accessor target = new SmugMugApiException_Accessor(info, context);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SmugMugApiException Constructor
        ///</summary>
        [TestMethod()]
        public void SmugMugApiExceptionConstructorTest1()
        {
            string message = string.Empty; // TODO: Initialize to an appropriate value
            Exception innerException = null; // TODO: Initialize to an appropriate value
            SmugMugApiException target = new SmugMugApiException(message, innerException);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SmugMugApiException Constructor
        ///</summary>
        [TestMethod()]
        public void SmugMugApiExceptionConstructorTest()
        {
            string message = string.Empty; // TODO: Initialize to an appropriate value
            SmugMugApiException target = new SmugMugApiException(message);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
